package com.wanyang.dao;

import com.wanyang.vo.PostCommentVO;
import com.wanyang.vo.PostVO;
import com.wanyang.vo.TopPostVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PostDao {

    List<TopPostVO> queryTopPost(@Param("postCategoryId") Integer postCategoryId, @Param("areaId") Integer areaId);

    List<PostVO> queryVOList(@Param("postCategoryId") Integer postCategoryId, @Param("areaId") Integer areaId);

    List<PostCommentVO> queryDefaultComment(Integer postId);

    List<PostCommentVO> queryPrincipalComment(Integer postId);

    int updateLikes(@Param("id") Integer id, @Param("num") Integer num);

    int updateComments(@Param("id") Integer id, @Param("num") Integer num);

    List<PostVO> queryLastBrowse(Integer memberId);

    List<PostVO> queryCollect(Integer memberId);

    List<PostVO> queryMemberPosts(Integer memberId);
}
